 <template>
	 <div>
		 <div>
			<view>购物车</view>
			<view>
			<view v-for="(item,index) in UserVo" :key="item.id">
				序号:{{index}},商品编号:{{item.goodsId}},商家:{{item.goodsId}},订单编号:{{item.orderId}},商家状态:{{item.title}},创建日期:{{item.num}},总价:{{item.totalFee}},最后修改日期:{{item.picPath}},
			</view>
			</view>
		 </div>
	 </div>
	
</template>

<script>
	export default {
		data() {
			return {
				title: '购物车',
				UserVo:{},

			}
		},
		onLoad() {
			this.handIntegralSelect()
		},
		methods: {
			handIntegralSelect(){
				
				uni.request({
				    url: `http://localhost:7000/shop/store/${this.userId}`, //接口地址。
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
					method:'POST',
					

				    success: (res) => {
						uni.getStorage({
						    key: 'userId',
						    data: res.data.data.userId
						})
						uni.getStorage({
						    key: 'userName',
						    data: res.data.data.userName
						})
						uni.getStorage({
						    key: 'userRole',
						    data: res.data.data.userRole
						})
				        console.log(res.data);
						this.UserVo=res.data.data.records
				    },
				})	
			},
			integral(){
				uni.navigateTo({
					url:"../integral/index"
				})
			},
			handUpdate(){
				uni.navigateTo({
					url:"../modification/index"
				})
			},
			artice(){
				uni.navigateTo({
					url:"../article/index"
				})
			}
		},
		mounted() {
			this.getlist()
		}
	}
</script>

<style lang="scss">
	.merchant{
		.mrchant_item{
			display: flex;
			padding: 10rpx 20 rpx;
			border-bottom: 1px ;
			.info{
				font-size: 24rpx;
			}
		}
	}
</style>
 -->